import { createApp } from 'vue';
import installElementPlus from '@/config/component_config/element_config/element_config';
import installToast from '@/config/component_config/toast_config/toast_config';
import installCustomConfig from '@/config/component_config/custom_config/custom_config';

/**
 * 安装component组件
 * @param app 要安装的vue应用
 */
function installComponent (app: ReturnType<typeof createApp>) {
  // 接着注册element-plus相关组件
  installElementPlus(app);
  installToast(app);
  installCustomConfig(app);
}

export default installComponent;
